//
//  GourmetDetailViewController.h
//  OrderSeat
//
//  Created by 王威 on 13-12-5.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MWPhotoBrowser.h"
#import <AssetsLibrary/AssetsLibrary.h>
#import "SimpleCommentsCell.h"

@class GourmetDetailDataSource;
@interface GourmetDetailViewController : BaseViewController<MWPhotoBrowserDelegate>

@property (strong, nonatomic) IBOutlet UIScrollView *theScrollview;

@property (strong, nonatomic) IBOutlet UIView *headView;
@property (strong, nonatomic) IBOutlet UIView *shopView;

@property (strong, nonatomic) IBOutlet UIImageView *logoImage;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UILabel *descriptionLabel;

@property (strong, nonatomic) IBOutlet UIButton *likeBtn;
@property (strong, nonatomic) IBOutlet UIButton *favBtn;
@property (strong, nonatomic) IBOutlet UIButton *shareBtn;
@property (strong, nonatomic) IBOutlet UILabel *tagLabel;
@property (strong, nonatomic) IBOutlet UILabel *commentCountLabel;

@property (strong, nonatomic) IBOutlet UILabel *shopNameLabel;

@property (strong, nonatomic) IBOutlet UILabel *shopAddressLabel;
@property (strong, nonatomic) IBOutlet UIButton *shopOrderBtn;

@property (strong, nonatomic) IBOutlet UIButton *composeBtn;
@property (strong, nonatomic) IBOutlet UITableView *commentsTable;

@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) NSString *gourmetId;
@property (strong, nonatomic) NSMutableArray *photoList;
@property (strong, nonatomic) GourmetDetailDataSource *dataSource;

- (id)initWithId:(NSString*)gourmetId;

- (IBAction)buttonAction:(id)sender;

@end

@interface GourmetDetailDataSource : BaseDataSource<UITableViewDataSource,UITableViewDelegate>

@property (strong, nonatomic) NSMutableArray *commentsList;
@property (strong, nonatomic) SimpleCommentsCell *commentCell;
@property (strong, nonatomic) GourmetDetailViewController *viewController;

- (void)fetchGourmetDetail;
- (void)like;
- (void)favorites;
- (void)share;

@end
